//
//  BTCtopView.m
//  Fireball
//
//  Created by mba on 17/12/27.
//  Copyright © 2017年 俞渊华. All rights reserved.
//

#import "BTCtopView.h"

@implementation BTCtopView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
//- (void)setModel:(ValueModel *)model {
//    _model = model;
//    self.nameLabel.text=[NSString stringWithFormat:@"%d", model.CID ];
//    if ([model.Infos count]>0) {
//        NSDictionary* a=[model.Infos objectAtIndex:0];
//        self.marketValueLabel.text = [NSString stringWithFormat:@"¥%@",[a objectForKey:@"c"]];
//        self.currentValueLabel.text = [NSString stringWithFormat:@"¥%@",[a objectForKey:@"l"]];
//        NSInteger ratio=(NSInteger)[a objectForKey:@"c"]-(NSInteger)[a objectForKey:@"o"];
//        //        self.ValueRatio.titleLabel.text=@"123";
//        [self.ValueRatio setTitle:[NSString stringWithFormat:@"%ld%",ratio] forState:nil];
//        if (ratio>0) {
//            [self.ValueRatio setBackgroundColor:[ToolColor colorWithHexString:@"#3cbc98"]];
//        }
//        else{
//            [self.ValueRatio setBackgroundColor:[ToolColor colorWithHexString:@"#fc5858"]];
//        }
//    }
//}
@end
